ExposedMembers.GameEvents = GameEvents
function TheFoolOnGoodyHutReward( playerID :number, unitID :number, goodyHutType :number )
	local pPlayerConfig	:table = PlayerConfigurations[playerID];
	if pPlayerConfig == nil or pPlayerConfig:GetLeaderTypeName() ~= 'LEADER_PEN_KLEIN_MORETTI' then return; end
	-- print('123456');
	local fpPlayer = Players[playerID];
	fpPlayer:AttachModifierByID('PEN_LORD_OF_MYSTERIES_GRANT_RANDOM_TECH_BOOST')
	fpPlayer:AttachModifierByID('PEN_LORD_OF_MYSTERIES_GRANT_RANDOM_CIVIC_BOOST')
end
GameEvents.UnitTriggerGoodyHut.Add(TheFoolOnGoodyHutReward);